package FrameWork;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.List;

public abstract class Menu 
{
	public int pixXPos,pixYPos,width,height;
	boolean cursorRequirement = false;
	public Menu()
	{
		
	}
	
	public void printLines(Graphics g,List<String> lines,List<Color> colors)
	{
		int y=21;
		for(int i = 0; i < lines.size();i++)
		{
			g.setColor(colors.get(i));
			g.drawString(lines.get(i), 15, y);
			y+=Utilities.textInterval;
		}
	}
	
	public void printMultiColorLines(Graphics g,List<String> strings,List<Color> colors,int numStrings)
	{
		int x = 15;
		int y = 21;
		for (int i = 0;i<strings.size();i+=numStrings)
		{
			for (int j = 0;j<numStrings;j++)
			{
				g.setColor(colors.get(i+j));
				g.drawString(strings.get(i+j), x, y);
				x+=strings.get(i+j).length()*10;
			}
			x = 15;
			y+=Utilities.textInterval;
		}
	}
	
	public abstract void draw(Graphics g);
	
	public abstract boolean requiresCursor();
	
	public abstract void setRequiresCursor(boolean f);
	
	public abstract int getLevel();
}
